package com.tte.common.designpattern.abstractfactory;

import com.tte.common.designpattern.service.Place;
import com.tte.common.designpattern.service.Shopping;

/**
 * 抽象类
 * @Description: 为 PlaceService 和 ShoppingService 对象创建抽象类来获取工厂。
 * @Author: DongWH
 */
public abstract class AbstractFactory {

    /**
     * 获取产地
     * @param place
     * @return
     */
    public abstract Place getPlace(String place);

    /**
     * 获取商品
     * @param Shopping
     * @return
     */
    public abstract Shopping getShopping(String Shopping);
}
